using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Effect24-外部调用函数2个参数(int)", menuName = "Skill/Effect/Effect24-外部调用函数2个参数(int)", order = 24)]
public class Effect24 : EffectBase
{
    public EffectBase effect;
    public int turnCount;
    public override void Apply(Pair pair, GameEvent e, List<Chess> targets)
    {
        if(targets == null || targets.Count == 0) return;

        foreach (var target in targets)
        {
            effect.ExternallyFunctions(target,turnCount);
        }
    }
}